/**
 * Created by levy on 2017/1/3
 */
import React from 'react'
import {withRouter} from 'react-router'

@withRouter
export default class Header extends React.Component {
    render() {
        return (
            <header className="mui-bar mui-bar-nav">
                <a className="mui-icon mui-icon-left-nav mui-pull-left" onClick={() => this.props.router.goBack()}/>
                <h1 className="mui-title">{this.props.title || '标题'}</h1>
            </header>
        )
    }
}

